from django.db import models
from django.contrib.auth.models import User
from company.models import Company

class UserProfile(models.Model):
    user = models.ForeignKey(User, unique=True)
    company = models.ManyToManyField(Company, blank=True)
    national_id = models.IntegerField(default=0)
    expiry_date = models.DateField()
    origin = models.CharField(max_length=100, blank=True)
    company = models.CharField(max_length=50, blank=True)